import request from '@/utils/request'

// 查询image列表
export function listImag(query) {
  return request({
    url: '/study/imag/list',
    method: 'get',
    params: query
  })
}

// 查询image详细
export function getImag(id) {
  return request({
    url: '/study/imag/' + id,
    method: 'get'
  })
}

// 新增image
export function addImag(data) {
  return request({
    url: '/study/imag',
    method: 'post',
    data: data
  })
}

// 修改image
export function updateImag(data) {
  return request({
    url: '/study/imag',
    method: 'put',
    data: data
  })
}

// 删除image
export function delImag(id) {
  return request({
    url: '/study/imag/' + id,
    method: 'delete'
  })
}
